package com.fenye.mapper;

import com.fenye.domain.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 数据访问层
 */
@Mapper
@Component
public interface StudentMapper {

    @Select("select * from student limit #{count},#{pagesize}")
    public List<Student> findall(int count,int pagesize);

    @Select("select count(*) from student")
    public int findpage();
}
